/*
A的无参构造
B的无参构造
C的无参构造
C的析构函数
B的析构函数
A的析构函数
*/
#include <iostream>

using namespace std;

class A
{
public:
    A()
    {
        cout << "A的无参构造" << endl; 
    }
    ~A()
    {
        cout << "A的析构函数" << endl;
    }
};

class B:public A
{
public:
    B()
    {
        cout << "B的无参构造" << endl; 
    }
    ~B()
    {
        cout << "B的析构函数" << endl;
    }
};

class C:public B
{
public:
    C()
    {
        cout << "C的无参构造" << endl; 
    }
    ~C()
    {
        cout << "C的析构函数" << endl;
    }
};

int main(int argc, char **argv)
{

    C c;


    return 0;
}